package cn.apthink.solon;

import org.noear.solon.annotation.Component;
import org.noear.solon.core.bean.LifecycleBean;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class LifecycleBeanImpl implements LifecycleBean{
    @Override
    public void start(){
        //在 AppContext:start() 时被调用。此时所有bean扫描已完成，订阅注入已完成
        log.info("=>LifecycleBean start！");
    }

    @Override
    public void stop(){
        //在 AppContext:stop() 时被调用。一般做些释放或停止类的工作
        log.info("=>LifecycleBean stop！");
    }
}